package cn.miju.dict.translate;

import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * <pre>
 * 字典值翻译注解
 * </pre>
 *
 * @author zhuming
 * @version 1.0.0
 * @since 2023-05-31 15:16
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@JacksonAnnotationsInside
@JsonSerialize(using = DictTranslateSerializer.class)
public @interface DictTranslate {
    /**
     * 字典名
     */
    String name();
}
